<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./bootstrap.css">
    <style>
        ul,li,p{
            margin:0;
        }
        .panel{
            position:relative;
        }
        .loading{
            display:flex;
            justify-content: center;
            align-items: center;
            position:absolute;
            z-index: 1;
            left:0;
            right: 0;
            top:51px;
            bottom:0;
            background-color:rgba(255,255,255,0.5);
        }
        .topic{
            display:flex;
            justify-content:center;
            align-items: center;
        }
        .nav-pills a {
            padding: 5px 10px !important;
        }
        .author img{
            width:30px;
            height: 30px;
            margin-right: 20px;
        }
        .info-detail{
            flex-grow: 1;
            margin-left:20px;
        }
        .count{
            font-size:12px;
        }
    </style>
</head>
<body>
    <div id="app">
        <div class="container">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <ul class="nav nav-pills">
                        <li class="active"><a href="#">全部</a></li>
                        <li><a href="#">精华</a></li>
                        <li><a href="#">分享</a></li>
                        <li><a href="#">问答</a></li>
                        <li><a href="#">招聘</a></li>
                    </ul>
                </div>
                <div class="loading">
                    <img src="./loading.gif" alt="">
                </div>
                <ul class="list-group">
                    <li class="list-group-item topic">
                        <div class="author"><img src="./1.jpg" alt=""></div>
                        <span class="label label-success">置顶</span>
                        <div class="info-detail">
                            <p class="title">服务器迁移至aws日本机房</p>
                            <div class="count">80/5941</div>
                        </div>
                        <time>2018/11/01</time>
                    </li>
                </ul>
            </div>
            <nav aria-label="Page navigation" class="text-center">
                <ul class="pagination">
                    <li>
                    <a href="#" aria-label="Previous">
                        <span aria-hidden="true">&laquo;</span>
                    </a>
                    </li>
                    <li><a href="#">1</a></li>
                    <li><a href="#">2</a></li>
                    <li><a href="#">3</a></li>
                    <li><a href="#">4</a></li>
                    <li><a href="#">5</a></li>
                    <li>
                    <a href="#" aria-label="Next">
                        <span aria-hidden="true">&raquo;</span>
                    </a>
                    </li>
                </ul>
            </nav>
        </div>
    </div>
    <script src="./vue.js"></script>
    <script src="axios.min.js"></script>
    <script>
        const vm=new ({
            el:"#app",
            created(){
                aixos.get('https://cnodejs.org/api/v1/topics');
            }
        })
    </script>
</body>
</html>